<template>
  <div>
    <el-date-picker
      v-model="value"
      :type="timeType"
      placeholder="选择日期"
      v-if="!timeRange"
    >
    </el-date-picker>

    <el-date-picker
      v-if="timeRange"
      v-model="value"
      :type="timeType"         
      range-separator="至"
      start-placeholder="开始日期"
      end-placeholder="结束日期"
    >
    </el-date-picker>
  </div>
</template>
<script>
import { Time } from "./template";
export default {
  name: "templateTime",
  extends: Time,
  data() {
    return {
      value: "",
    };
  },
};
</script>